home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2416 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: hops.cs.jhu.edu!vincie
  2. From: vincie@circle.cs.jhu.edu (Michael Ko)
  3. Newsgroups: comp.lang.c
  4. Subject: Problems with inline asm in Borland C
  5. Date: 21 Jan 1996 06:41:23 GMT
  6. Organization: Computer Science Department, The Johns Hopkins University
  7. Message-ID: <4dsn6j$snb@blaze.cs.jhu.edu>
  8. NNTP-Posting-Host: hops.cs.jhu.edu
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. Keywords: 
  12. I just have a quick question concerning using inline assembler operators
  13. in Borland C++ 3.0. I'm trying to plot pixels into the graphics memory
  14. area. However, the assembly code seems to alter either the code of the
  15. program or values in variables. I've removed the inline assembly and the
  16. code is fine (but doesn't plot, obviously). If I use inline codes,
  17. does Borland C automatically save registers and restore them after the
  18. asm codes? I assume that Borland C does not use the video memory for
  19. code and data segments. Thanks for any help.
  20.  
  21.     /          Michael Ko            / "... A monk, a clone, and a Ferengi /
  22.    /   vincie@circle.cs.jhu.edu     /  decide to go bowling together..."  /
  23.   /    Computer Science Dept.      /  Data in "The Outrageous Okona"     /
  24.  /  The Johns Hopkins University  /  Star Trek : The Next Generation    /
  25. / PGP 2.6 Public Key is available by : finger vincie@circle.cs.jhu.edu /
  26.  
  27.  
  28.